
#ifndef XDNS_RESOURCE_RECORD_INFO_H
#define XDNS_RESOURCE_RECORD_INFO_H

#include <string>

class XdnsData;

class XdnsResourceRecordInfo
{
public:
    XdnsResourceRecordInfo();
    XdnsResourceRecordInfo(const XdnsResourceRecordInfo& anotherInfo);
    ~XdnsResourceRecordInfo();
    XdnsResourceRecordInfo& operator=(const XdnsResourceRecordInfo& anotherInfo);

    /* See xdns-protocol.h and RFC 1035 for description. */
    unsigned short m_type;
    unsigned short m_class;
    unsigned short m_rdlength;
    long m_ttl;
    size_t m_rdataOffset;
    std::string m_name;
};

#endif  // XDNS_RESOURCE_RECORD_INFO_H

